package com.x.erp.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 智能机器人
 */
@MappingTable(tableName = "erp_intelligent_robot")
public class IntelligentRobot extends BaseObject{

	@MappingColumn(columnName = "ROBOT_ID", columnPk = true, columnLength = 32)
	private String robotId; //id

	@MappingColumn(columnName = "ROBOT_TYPE")
	private Integer robotType; // 机器人类型（1：自动回复、2：筛选条件）

	@MappingColumn(columnName = "ROBOT_TITLE")
	private String robotTitle; // 标题

	@MappingColumn(columnName = "ROBOT_CONTENT")
	private String robotContent; // 回复内容

	@MappingColumn(columnName = "TEMPLATE_ID")
	private String templateId; // 查询模板id

	@MappingTable(tableName = "erp_select_template")
	private SelectTemplate selectTemplate; // 查询模板

	@MappingColumn(columnName = "ROBOT_STATE")
	private Integer robotState; // 状态（1：有效、2：无效）

	@MappingColumn(columnName = "ROBOT_SEQ")
	private Integer robotSeq; // 排序值

	@MappingColumn(columnName = "USER_ID")
	private String userId; // 创建人

	@MappingColumn(columnName = "ROBOT_CREATE_TIME")
	private Date robotCreateTime; // 创建时间

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date robotCreateTimeFrom; // 创建时间开始

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date robotCreateTimeTo; // 创建时间结束

	@MappingColumn(columnName = "ROBOT_UPDATE_TIME")
	private Date robotUpdateTime; // 修改时间

	public String getRobotId() {
		return robotId;
	}

	public void setRobotId(String robotId) {
		this.robotId = robotId;
	}

	public Integer getRobotType() {
		return robotType;
	}

	public void setRobotType(Integer robotType) {
		this.robotType = robotType;
	}

	public String getRobotTitle() {
		return robotTitle;
	}

	public void setRobotTitle(String robotTitle) {
		this.robotTitle = robotTitle;
	}

	public String getRobotContent() {
		return robotContent;
	}

	public void setRobotContent(String robotContent) {
		this.robotContent = robotContent;
	}

	public String getTemplateId() {
		return templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}

	public SelectTemplate getSelectTemplate() {
		return selectTemplate;
	}

	public void setSelectTemplate(SelectTemplate selectTemplate) {
		this.selectTemplate = selectTemplate;
	}

	public Integer getRobotState() {
		return robotState;
	}

	public void setRobotState(Integer robotState) {
		this.robotState = robotState;
	}

	public Integer getRobotSeq() {
		return robotSeq;
	}

	public void setRobotSeq(Integer robotSeq) {
		this.robotSeq = robotSeq;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Date getRobotCreateTime() {
		return robotCreateTime;
	}

	public void setRobotCreateTime(Date robotCreateTime) {
		this.robotCreateTime = robotCreateTime;
	}

	public Date getRobotCreateTimeFrom() {
		return robotCreateTimeFrom;
	}

	public void setRobotCreateTimeFrom(Date robotCreateTimeFrom) {
		this.robotCreateTimeFrom = robotCreateTimeFrom;
	}

	public Date getRobotCreateTimeTo() {
		return robotCreateTimeTo;
	}

	public void setRobotCreateTimeTo(Date robotCreateTimeTo) {
		this.robotCreateTimeTo = robotCreateTimeTo;
	}

	public Date getRobotUpdateTime() {
		return robotUpdateTime;
	}

	public void setRobotUpdateTime(Date robotUpdateTime) {
		this.robotUpdateTime = robotUpdateTime;
	}
}
